Ext.define('SKJF.view.AKSES.v_s_users_form', {
	extend	: 'Ext.form.Panel',
	
	alias	: 'widget.v_s_users_form',
	
	//region:'east',
	//id: 'east-region-container',
	
	title		: 'Create/Update s_users',
    bodyPadding	: 5,
    autoScroll	: true,
    
    initComponent: function(){
    	/*
		 * Deklarasi variable setiap field
		 */
		 
		var user_id_field = Ext.create('Ext.form.field.Number', {
			itemId: 'user_id_field',
			name: 'USER_ID', /* column name of table */
			fieldLabel: 'USER ID',
			allowBlank: false /* jika primary_key */,
			maxLength: 11 /* length of column name */});
		var user_name_field = Ext.create('Ext.form.field.Text', {
			itemId: 'user_name_field',
			name: 'USER_NAME', /* column name of table */
			fieldLabel: 'USER NAME',
			maxLength: 50 /* length of column name */
		});
		var user_passwd_field = Ext.create('Ext.form.field.Text', {
			name: 'USER_PASSWD', /* column name of table */
			fieldLabel: 'PASSWORD',
			inputType: 'password',
			maxLength: 50 /* length of column name */
		});	
		var passnew_field = Ext.create('Ext.form.field.Text', {
			name: 'NEW_PASS', /* column name of table */
			fieldLabel: 'NEW PASSWORD',
			inputType: 'password',
			maxLength: 50 /* length of column name */
		});		
		var confirm_field = Ext.create('Ext.form.field.Text', {
			name: 'CONF_PASS', /* column name of table */
			fieldLabel: 'CONFIRM PASSWORD',
			inputType: 'password',
			maxLength: 50 /* length of column name */
		});	
        Ext.apply(this, {
            fieldDefaults: {
                labelAlign: 'right',
                labelWidth: 120,
                msgTarget: 'qtip',
				anchor: '100%'
            },
			defaultType: 'textfield',
            items: [user_id_field,user_name_field,user_passwd_field,passnew_field,confirm_field],
			
	        buttons: [{
                iconCls: 'icon-save',
                itemId: 'save',
                text: 'Save',
                disabled: true,
                action: 'save'
            }, {
                iconCls: 'icon-add',
				itemId: 'create',
                text: 'Create',
                action: 'create'
            }, {
                iconCls: 'icon-reset',
                text: 'Cancel',
                action: 'cancel'
            }]
        });
        
        this.callParent();
    }
});